package com.duoduo.admin.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.Data;

@Entity
@Data
@EntityListeners(AuditingEntityListener.class)
public class SysLog implements Serializable {

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
     /**
	 * id
	 */
	private Long id;
     /**
	 * 日志标题
	 */
	private String title;
     /**
	 * 服务ID
	 */
	private String serviceId;
     /**
	 * 异常信息
	 */
	private String exception;
     /**
	 * 日志标题
	 */
	private String type;
     /**
	 * 请求URI
	 */
	private String requestUri;
     /**
	 * 操作方式
	 */
	private String method;
     /**
	 * 用户代理
	 */
	private String userAgent;
     /**
	 * 操作IP地址
	 */
	private String remoteAddr;
     /**
	 * 操作提交的数据
	 */
	private String params;
     /**
	 * 执行时间
	 */
	private Long time;
     /**
	 * 创建人
	 */
    @CreatedBy
	private String createBy;
     /**
	 * 更新人
	 */
    @LastModifiedBy
	private String updateBy;
     /**
	 * 删除标记
	 */
	private Boolean delFlag;
     /**
	 * 创建时间
	 */
    @CreatedDate
	private LocalDateTime createTime;
     /**
	 * 更新时间
	 */
    @LastModifiedDate
	private LocalDateTime updateTime;

}
